/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.lspViolation.service.impl;

import java.math.BigDecimal;
import za.ac.cput.pretorius.question3.lspViolation.model.TandemBike;
import za.ac.cput.pretorius.question3.lspViolation.service.TandemEnergyCalculator;

/**
 *
 * @author griddy
 */
public class TandemCalculatorImpl implements TandemEnergyCalculator {

    @Override
    public BigDecimal calculateKeneticEnergy(TandemBike instrument, BigDecimal riderWeight, BigDecimal secondRiderWeight, BigDecimal meterPerSecond) {
        return instrument.calculateKeneticEnergy(meterPerSecond, riderWeight,secondRiderWeight).stripTrailingZeros();
    }


   
   
    


   

   
    
}
